package exp1;

import java.util.Scanner;

public class GenericityTest {
    public static <E> void printArray(E[] inputArray) {
        for (E element : inputArray) {
            System.out.printf("%s ", element);
        }
    }

    public static void main(String args[]) {
        int x;
        Scanner scan = new Scanner(System.in);
        x = scan.nextInt();
        Integer[] intArray = new Integer[5];
        Double[] doubleArray = new Double[5];
        Character[] charArray = new Character[5];
        switch (x) {
            case 1:
                for (int i = 0; i < 5; i++) {
                    intArray[i] = scan.nextInt();
                }
                printArray(intArray);
                break;
            case 2:
                for (int i = 0; i < 5; i++) {
                    doubleArray[i] = scan.nextDouble();
                }
                printArray(doubleArray);
                break;
            case 3:
                for (int i = 0; i < 5; i++) {
                    charArray[i] = scan.next().charAt(0);
                }
                printArray(charArray);
                break;
        }
        scan.close();


    }
}

